package org.jeecg.common.util;

import com.google.common.collect.Lists;
import org.weixin4j.model.message.template.TemplateData;

import java.util.List;

/**
 * @author guoyh
 * @ClassName WxUtil
 * @Description
 * @since 2020/9/5 12:44
 **/
public class WxUtil {

    public static List<TemplateData> buildTemplateData(String firstContent, String keyword1, String keyword2, String keyword3, String remarkContent){
        TemplateData first = new TemplateData("first",firstContent);
        TemplateData key1 = new TemplateData("keyword1",keyword1);
        TemplateData key2 = new TemplateData("keyword2",keyword2);
        TemplateData key3 = new TemplateData("keyword3",keyword3);
        TemplateData remark = new TemplateData("remark",remarkContent);
        return Lists.newArrayList(first,key1,key2,key3,remark);
    }
}
